package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 机构提供的产品个性化字段显示
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-05
 */
@Data
@Accessors(chain = true)
@TableName("platform_r_org_prod_field")
@ApiModel(value = "ROrgProdField对象", description = "机构提供的产品个性化字段显示")
public class ROrgProdField extends Model<ROrgProdField> {

    @ApiModelProperty("注释")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("table_type")
    private String tableType;

    @ApiModelProperty("字段id")
    @TableField("field_id")
    private Long fieldId;

    @ApiModelProperty("机构提供的产品id")
    @TableField("org_product_id")
    private Long orgProductId;

    @TableField("active")
    private String active;


    public static final String ID = "id";

    public static final String TABLE_TYPE = "table_type";

    public static final String FIELD_ID = "field_id";

    public static final String ORG_PRODUCT_ID = "org_product_id";

    public static final String ACTIVE = "active";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
